fix: use safe_truncate to truncate charactor (#3263)#3264
fix: use safe_truncate to truncate charactor (#3263)#3264DOsinga merged 6 commits intoblock:mainfrom
Conversation
Signed-off-by: toyamagu2021@gmail.com <toyamagu2021@gmail.com>
DOsinga
left a comment
There was a problem hiding this comment.
this is great and thanks for jumping on this. if we want to completely fix this, we should also replace the text.len() instances with text.chars().count() or where possible replace
if text.len() > count {
safe_truncate(text)
} else {
text
}
with just safe_truncate(text)
Signed-off-by: toyamagu2021@gmail.com <toyamagu2021@gmail.com>
|
@DOsinga |
|
this is great, thank you. do you have any ideas on what we could do to avoid us breaking this again :) ? |
|
@DOsinga And you can enable it using this command: However, this currently generates a large number of errors, including false positives, making it difficult to fix immediately. If you'd like, I can create an issue for it and address it in a separate pull request. |
|
CI is falling 🤔 |
* 'main' of github.com:block/goose: fix: Set include_usage=true for OpenAI streaming (#3441) feat: `recipe list` (#2814) (#2815) docs: update github mcp config (#3433) feat: Implement streaming for OpenAI (#3413) fix: improve extension startup error messages with command details (#2694) [feat]: improve file search tools to add globsearch / grep tools (#3368) docs: typo in guide description (#3429) fix: use safe_truncate to truncate charactor (#3263) (#3264) fix: convert invalid recipe variable name to raw content (#3420) center goose mobile screenshot (#3418) docs: model context limit overrides (#3377) docs: Subagents (#3402) fix: avoid pass encoded empty string to goose run --recipe (#3361) ux: alphabetize extensions (#3416) fix: message concatenation in server session management (#3412) refactor: streamline memory directory management (#3345) feat: Add AZURE_OPENAI_API_KEY as a visible config parameter (#3265) feat: stream LLM responses (#2677) # Conflicts: # crates/goose/src/session/storage.rs # ui/desktop/src/components/ChatView.tsx # ui/desktop/src/components/settings/extensions/subcomponents/ExtensionList.tsx
* main: (54 commits) UI update with sidebar and settings tabs (#3288) docs: add CLIStreamExtensionInstructions component (#3443) chore(release): release version 1.0.36 (#3436) [goose-llm] fix image content bug, add optional request_id field (#3439) fix: Set include_usage=true for OpenAI streaming (#3441) feat: `recipe list` (#2814) (#2815) docs: update github mcp config (#3433) feat: Implement streaming for OpenAI (#3413) fix: improve extension startup error messages with command details (#2694) [feat]: improve file search tools to add globsearch / grep tools (#3368) docs: typo in guide description (#3429) fix: use safe_truncate to truncate charactor (#3263) (#3264) fix: convert invalid recipe variable name to raw content (#3420) center goose mobile screenshot (#3418) docs: model context limit overrides (#3377) docs: Subagents (#3402) fix: avoid pass encoded empty string to goose run --recipe (#3361) ux: alphabetize extensions (#3416) fix: message concatenation in server session management (#3412) refactor: streamline memory directory management (#3345) ...
* main: UI update with sidebar and settings tabs (#3288) docs: add CLIStreamExtensionInstructions component (#3443) chore(release): release version 1.0.36 (#3436) [goose-llm] fix image content bug, add optional request_id field (#3439) fix: Set include_usage=true for OpenAI streaming (#3441) feat: `recipe list` (#2814) (#2815) docs: update github mcp config (#3433) feat: Implement streaming for OpenAI (#3413) fix: improve extension startup error messages with command details (#2694) [feat]: improve file search tools to add globsearch / grep tools (#3368) docs: typo in guide description (#3429) fix: use safe_truncate to truncate charactor (#3263) (#3264)
Signed-off-by: toyamagu2021@gmail.com <toyamagu2021@gmail.com> Signed-off-by: Soroosh <soroosh.sarabadani@gmail.com>
Signed-off-by: toyamagu2021@gmail.com <toyamagu2021@gmail.com> Signed-off-by: Kyle Santiago <kyle@privkey.io>
Signed-off-by: toyamagu2021@gmail.com <toyamagu2021@gmail.com>
Signed-off-by: toyamagu2021@gmail.com <toyamagu2021@gmail.com> Signed-off-by: Adam Tarantino <tarantino.adam@hey.com>
Signed-off-by: toyamagu2021@gmail.com toyamagu2021@gmail.com
Closes #3263
Same as #2819